package com.dzl.aboutus;

import com.dzl.aboutUs.pojo.WelfareAboutUs;
import com.dzl.aboutUs.service.WelfareAboutUsService;
import com.dzl.base.controller.BaseController;
import com.dzl.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 关于我们(WelfareAboutUs)表控制层
 * @author caobucao
 * @since 2021-05-13 15:54:17
 */
@RestController
@RequestMapping("welfareAboutUs")
public class WelfareAboutUsController extends BaseController {

    @Autowired
    private WelfareAboutUsService welfareAboutUsService;

    /**
     * 关于我们获取
     * @return com.dzl.util.JsonResult
     * @author ChenLong
     * @date 2021-06-07 11:14:32
     **/
    @GetMapping("getAboutUsInfo")
    public JsonResult<WelfareAboutUs> getAboutUsInfo() {
        return JsonResult.success(welfareAboutUsService.selectOne(new WelfareAboutUs()));
    }
}
